package com.renjian.funplaypro.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

@TableName("zw_user_msg")
@Getter
@Setter
@ToString
public class UserMessage {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private Long fromUserId;
    private Long toUserId;
    private String url;
    private String msg;
    //0好友消息;1订单消息;2官方公告;3系统通知
    private Integer msgType;
    //0文本信息;1图片;2视频;3音频
    private Integer type;

    private Date createTime;
    private String anotherUserNick;

    @TableField(exist = false)
    private User user;
}
